package com.lehecai.ucenter.entity;

import org.apache.commons.lang.builder.CompareToBuilder;

public abstract class OrderEntity extends BaseEntity implements
		Comparable<OrderEntity> {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3467547569674709903L;
	public static final String ORDER_PROPERTY_NAME = "order";
	private Integer order;

	public Integer getOrder() {
		return this.order;
	}

	public void setOrder(Integer order) {
		this.order = order;
	}

	public int compareTo(OrderEntity orderEntity) {
		return new CompareToBuilder()
				.append(getOrder(), orderEntity.getOrder())
				.append(getId(), orderEntity.getId()).toComparison();
	}
}
